<?php
/**
 * Radcodes - SocialEngine Module
 *
 * @category   Application_Extensions
 * @package    Game
 * @copyright  Copyright (c) 2009-2010 Radcodes LLC (http://www.radcodes.com)
 * @license    http://www.radcodes.com/license/
 * @version    $Id$
 * @author     Vincent Van <vincent@radcodes.com>
 */
?>
<?php $game = $this->game; ?>
<ul>
  <?php if ($this->show_category): ?>
    <li class="game_meta_category"><?php echo $this->htmlLink($game->getCategory()->getHref(), $this->translate($game->getCategory()->getTitle())); ?></li>
  <?php endif; ?>
  <?php if ($this->show_owner): ?>
    <li class="game_meta_owner"><?php echo $this->translate('by %s', $game->getOwner()->toString()); ?></li>
  <?php endif; ?>
  <?php if ($this->show_created): ?>
    <li class="game_meta_date"><?php echo $this->timestamp($game->creation_date); ?></li>
  <?php endif; ?>
  <?php if ($this->show_updated): ?>
    <li class="game_meta_date"><?php echo $this->timestamp($game->modified_date); ?></li>
  <?php endif; ?>  
  <?php if ($this->show_favorites): ?>
    <li class="game_meta_favorites"><?php echo $this->translate(array('%s favorite', '%s favorites', $game->favorite_count), $this->locale()->toNumber($game->favorite_count)); ?></li>
  <?php endif; ?>
  <?php if ($this->show_comments): ?>
    <li class="game_meta_comments"><?php echo $this->translate(array("%s comment", "%s comments", $game->comment_count), $this->locale()->toNumber($game->comment_count)); ?></li>
  <?php endif; ?>
  <?php if ($this->show_likes): ?>
    <li class="game_meta_likes"><?php echo $this->translate(array('%1$s like', '%1$s likes', $game->like_count), $this->locale()->toNumber($game->like_count)); ?></li>
  <?php endif; ?>
  <?php if ($this->show_views): ?>
    <li class="game_meta_views"><?php echo $this->translate(array('%s view', '%s views', $game->view_count), $this->locale()->toNumber($game->view_count)); ?></li>
  <?php endif; ?>
  
</ul>